#ifndef _MQTT_MOSQUITTO_H
#define _MQTT_MOSQUITTO_H
#include <mosquitto.h>
#include <string.h>
#include <stdio.h>
struct mosquitto * mqtt_publish_init(void);
struct mosquitto * mqtt_subscribe_init(void);
int mqtt_pub(struct mosquitto * mosq, char * topic, char * payload, int payload_len);
int mqtt_sub(struct mosquitto * mosq, char * topic);
void sub_init(struct mosquitto * mosq);
void mqtt_destroy(struct mosquitto * mosq);
void on_message(struct mosquitto * mosq, void * obj, const struct mosquitto_message * msg);
void SwitchControl(lv_obj_t * obj, char * status);
#endif